import { post } from '@/core/utils/http';
import type { Response } from '@/core/models';

/**  统一分享 */
export const queryShare = (data : any) : Promise<Response<any>> => {
	return post('Api/User/Share', { data, });
}

/**  统一分享解码 */
export const queryDeshare = (data : any) : Promise<Response<any>> => {
	return post('Api/User/deshare', { data, });
}

/**  获取我的邀请信息 */
export const queryMyInvite = () : Promise<Response<any>> => {
	return post('Api/User/MyInvite', {}, true);
}

/**  设置我的上级邀请人 */
export const setMyInvite = (data : any) : Promise<Response<any>> => {
	return post('Api/User/SetMyInvite', {
		data,
	}, true);
}